-- GENERATED SPELL FOR [Iruk] --


function spell0_26219(pUnit, Event) --6Create Totem of Issliruk,n/a--
pUnit:FullCastSpellOnTarget(46816,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26219', 630, 1)
end

function Sorts_26219(pUnit, Event)
local choix_sorts_26219 = math.random(0, 0)
if choix_sorts_26219 == 0 then
pUnit:RegisterEvent('spell0_26219', 1, 1)
end
end

function mob26219_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26219', math.random(1500, 3000), 1)
end

function mob26219_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26219_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26219_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26219, 1, 'mob26219_Action')
RegisterUnitEvent(26219, 2, 'mob26219_Leave')
RegisterUnitEvent(26219, 3, 'mob26219_Kill')
RegisterUnitEvent(26219, 4, 'mob26219_Die')
